package com.ophiux.common.tools.util;

public class PatternUtil {
    public static final String REGEXP_EMAIL = "^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";
    public static final String REGEXP_USERNAME = "^[a-zA-Z0-9_-]{3,32}$";
    public static final String REGEXP_PHONE = "^(1[3-9][0-9]{9})|([0-9]{2,3}-[1-9][0-9]{6,7}(-[0-9]{4})?)|([1-9][0-9]{6,7}(-[0-9]{4})?)$";
    public static final String REGEXP_NUMBER = "^[0-9]$";
    public static final String REGEXP_ID_CARD = "^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$|^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X)$";
}
